package com.kerrykidz.system.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.kerrykidz.system.dao.model.SecRole2usrEntity;
import com.rdp.framework.core.dao.mapper.MyBatisSuperMapper;
import com.rdp.framework.exception.RDPException;
@Repository
public interface SecRole2usrEntityMapper extends MyBatisSuperMapper<SecRole2usrEntity>{
	/**
	 * 根据用户ID获取所有的用户角色
	 * @param userId
	 * @return
	 * @throws RDPException
	 */
	public List<SecRole2usrEntity> findAllRoleByUserId(@Param("userId") String userId) throws RDPException;
	
	/**
	 * 根据用户id获取用户角色 
	 * @param userId
	 * @return
	 * @throws RDPException
	 */
	public List<SecRole2usrEntity> findUserRoleById(@Param("fkUsrId") String userId) throws RDPException;
}